﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Common;
using Basic.Business;
using Educational.Business;

public partial class Educational_SetUp : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            //DictionaryTypeAdmin.AddDictionaryType("学校类型");
            //DictionaryAdmin.AddDictionary("学校类型", 1, "小学");
            //DictionaryAdmin.AddDictionary("学校类型", 2, "初中");
            //DictionaryAdmin.AddDictionary("学校类型", 3, "小学+初中");
            //DictionaryAdmin.AddDictionary("学校类型", 4, "高中");
            //DictionaryAdmin.AddDictionary("学校类型", 5, "初中+高中");
            //DictionaryAdmin.AddDictionary("学校类型", 6, "小学+初中+高中");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_School");
            //MenuNodeAdmin.AddMenuNode("", "教务管理", 100, "", "学校管理");
            //MenuNodeAdmin.AddMenuNode("教务管理", "学校管理", 100, "../../Educational/BasicBackground/SchoolManage.aspx", "学校管理");
            //RoleGroupAdmin.AddRoleGroup("教务管理");
            //RoleAdmin.AddRole("学校管理", "教务管理");
            //AdminGroupAdmin.AddRoleToAdminGroup("系统超级管理员", "学校管理");
            //DictionaryTypeAdmin.AddDictionaryType("职称");
            //DictionaryAdmin.AddDictionary("职称", 1, "未评");
            //DictionaryAdmin.AddDictionary("职称", 2, "小教高级");
            //DictionaryAdmin.AddDictionary("职称", 3, "小教一级");
            //DictionaryAdmin.AddDictionary("职称", 4, "小教二级");
            //DictionaryAdmin.AddDictionary("职称", 5, "小教特级");
            //DictionaryAdmin.AddDictionary("职称", 6, "中教高级");
            //DictionaryAdmin.AddDictionary("职称", 7, "中教一级");
            //DictionaryAdmin.AddDictionary("职称", 8, "中教二级");
            //DictionaryAdmin.AddDictionary("职称", 9, "中教三级");
            //DictionaryAdmin.AddDictionary("职称", 10, "中教特级");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_Teacher");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_Grade");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_Eclass");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_SchoolRole");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_SchoolRoleGroup");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_Department");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_Position");
            //AutoNumberAdmin.AddAutoNumber(10000001, 10000001, "Educational_SchoolRoleCategory");
            //SchoolRoleCategoryAdmin.AddSchoolRoleCategory("学校管理");
            //SchoolRoleAdmin.AddSchoolRole("学校基本信息", "学校管理");
            //SchoolRoleAdmin.AddSchoolRole("权限组管理", "学校管理");
            //SchoolRoleAdmin.AddSchoolRole("部门管理", "学校管理");
            //SchoolRoleAdmin.AddSchoolRole("职位管理", "学校管理");
            //SchoolRoleAdmin.AddSchoolRole("教师管理", "学校管理");
            //SchoolRoleAdmin.AddSchoolRole("年级管理", "学校管理");
            //SchoolRoleAdmin.AddSchoolRole("班级管理", "学校管理");
            //SchoolRoleCategoryAdmin.AddSchoolRoleCategory("教务管理");
            //以下是测试调用，非必须执行
            //SchoolAdmin.AddSchool(10000001, "石潭镇白托中学", "张志华", "073157839714", "baituo", Tools.MD5Encrypt("baituo"));
            Label1.Text = "执行成功";
        }
        catch (Exception ex)
        {
            Label1.Text = ex.Message;
        }
    }
}
